
<div id="barb">

</div> <?php
/// testing the cards simbols
/* 4 test
  echo '<span style="color:blask">&spades;</span>';
  echo ' &#9825; ';
  echo '<span style="color:red">&#9825;</span>';
  echo '<span style="color:black">&#9824;</span>';
  echo '<span style="color:red">&hearts;</span>';

  echo '<span style="color:red">&diams;</span>';
  echo '<span style="color:red">&#9826;</span>';
  echo '&clubs;';
  echo '<br />';
  echo '<br />';
 * */

echo "Hello " . $_SESSION['username'];
?>

<br /><?php
if (isset($_SESSION['mastuit'])) {
    // echo $_SESSION['mastuit'];
}



/* poligon
$someCard = Array("6 &diams;,7 &diams;");

$str = implode($someCard);


print_r($someCard);
echo '<br />';
echo $str;
echo '<br />';
$array = array(
    "6 &spades;",
    "6 &clubs;",
    "6 &hearts;",
    "6 &diams;",
    "7 &spades;",
    "7 &clubs;",
    "7 &hearts;",
    "7 &diams;");
echo '<br />';
print_r($array);
if (strpos($str, ',') !== false) {
    $newarray = array();
    $str2arr = explode(',', $str);
    $newarray = array_merge($newarray, $str2arr);
    foreach ($newarray as $val) {
        if (($key = array_search($val, $array)) !== false) {

            unset($array[$key]);
        }
    }
 echo 'bbooooooooooo<br />';
 print_r(explode(',', $str));
} else {
    if (($key = array_search($str, $array)) !== false) {

        unset($array[$key]);
    }
}

echo '<br />';
print_r($array);
*/
?>


<br />

<div id="msuit">
</div>
<div id="pccard">
</div>
<div id="ucard"></div> 
<div id="ciclop"> </div>


<div id="acsept">
    <form id="acseptf" action="<?php echo URL; ?>game/" method="post">
        <div id="acceptbut"> <input type="submit" value="Accept the cards"/></div>
    </form>
</div>

<div id="batt">
    <div id="gfield">
    </div>
  <div id="gfield1">
    </div>
    <div id="gfield2">
    </div>
</div>
<div id="buttons">
    
    <div id ="attack">
        <form id="attackf" action="<?php echo URL; ?>game" method="post">
            <input type="hidden" id="hidden_attak" name="hidden_attak" />
            <div id="atacbut"> <input type="submit" value="attak" s/></div>
        </form>
    </div>
    <div id="pickup">
        <form id="pickupf" action="<?php echo URL; ?>game" method="post">
            <input type="hidden" id="pickupcard" name="pickupcard" />
            <div id="subbut1"> <input id="plz" type="submit" value="Pickup" style="padding-top: 2px; margin-top: 60px; margin-right: 0px; width: 54px;"/></div>
        </form>
    </div>
    <div id="collect">
        <form id="collectf" action="<?php echo URL; ?>game" method="post">
            <input type="hidden" id="collectcard" name="collectcard" />
            <div id="subbut2"> <input type="submit" value="Collec tcard"/></div>
        </form>
    </div>
    <div id="defence">
        <form id="defencef" action="<?php echo URL; ?>game" method="post">
            <input type="hidden" id="defence" name="defence" value=""/>
            <div id="subbut3"> <input type="submit" value="Defence"/></div>
        </form>
    </div>
    <div id="stopattack">
        <form id="stopattackf" action="<?php echo URL; ?>game" method="post">
            <div id="subbut4"> <input type="submit" value="Stop Attack"/></div>
        </form>
    </div>  
        <div id="start">
        <form id="startf" action="<?php echo URL; ?>game" method="post">
            <div id="subbut4"> <input type="submit" value="Star the Game"/></div>
        </form>
    </div> 
</div>
